Skip to content

Clarify EnergyBank v2 cleanup state#181

Merged
dzarlax merged 1 commit into
mainfrom
codex/energybank-v1-cleanup
Jun 6, 2026
Merged

Clarify EnergyBank v2 cleanup state#181
dzarlax merged 1 commit into
mainfrom
codex/energybank-v1-cleanup

Conversation

@dzarlax

@dzarlax dzarlax commented Jun 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • rename the remaining v1 helper to computeLegacyEnergyBank so the fallback is explicit
  • update EnergyBank docs/comments to describe v2 as the shipped path
  • document daily_scores.energy_* as compatibility columns and avoid destructive DB cleanup

Tests

  • go test ./internal/health -run "Test.*Energy|Test.*Verdict" -count=1
  • go test ./internal/storage -run "Test.*Energy" -count=1
  • go test ./internal/ui -run "Test.*Energy|Test.*Dashboard" -count=1
  • go test ./...
  • go vet ./...
  • git diff --check

Closes #148

@coderabbitai

coderabbitai Bot commented Jun 6, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@dzarlax, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 30 minutes and 31 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 983554b8-6abe-4c6a-9c8c-13f55f3bc4e0

📥 Commits

Reviewing files that changed from the base of the PR and between 4a30654 and 0ce735e.

📒 Files selected for processing (14)
  • ENERGY_BANK.md
  • SCORING.md
  • cmd/server/main.go
  • docs/ai-plans/2026-06-06-issue-148-energybank-v1-cleanup-docs.html
  • internal/health/energy.go
  • internal/health/energy_v2.go
  • internal/health/formula_invariants_test.go
  • internal/health/scoring.go
  • internal/storage/energy_history.go
  • internal/storage/energy_snapshot_read.go
  • internal/storage/energy_v2_orchestrator.go
  • internal/ui/handler.go
  • internal/ui/static/charts.js
  • internal/ui/templates/pages/dashboard.html
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/energybank-v1-cleanup

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@dzarlax dzarlax merged commit d142513 into main Jun 6, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clean up EnergyBank v1 code and finalize current scoring docs

1 participant